package model

import "time"

type CompressCode struct {
	ID            int64     `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
	CompressCode  string    `gorm:"column:compress_code" json:"compress_code"`
	CodeStatus    int16     `gorm:"column:code_status" json:"code_status"`
	SequenceValue string    `gorm:"column:sequence_value" json:"sequence_value"`
	Strategy      string    `gorm:"column:strategy" json:"strategy"`
	CreateTime    time.Time `gorm:"column:create_time;autoCreateTime" json:"create_time"`
	EditTime      time.Time `gorm:"column:edit_time;autoUpdateTime" json:"edit_time"`
	Creator       string    `gorm:"column:creator" json:"creator"`
	Editor        string    `gorm:"column:editor" json:"editor"`
	Deleted       int16     `gorm:"column:deleted" json:"deleted"`
	Version       int64     `gorm:"column:version" json:"version"`
}

func (CompressCode) TableName() string {
	return "compress_code"
}
